@import './iconfont';

.iconfont {
  font-weight: normal;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  // margin: -3px;
  padding-bottom: 1px;
  font-feature-settings: 'liga'; // 控制OpenType字体中的高级排版功能
  -webkit-font-smoothing: antialiased; // 开启抗锯齿
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  font-size: 14px;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: none !important;
}

button,
input {
  padding: 0 12px; // 消除上下 padding，高度由 line-height 确定
  line-height: $input-height;
  border-radius: $border-radius;
}

button {
  @include primary;
  border: none;
  display: inline-block;
  cursor: pointer;
  &:hover {
    background: $button-light-color;
  }
}

input {
  border: solid 1px $light-color;
  line-height: $input-height - 2px; // 上下边框合计 2px
  background: #f0f9f5;
  color: #666;
  &:focus {
    border-color: $base-color;
    background: white;
    color: black;
  }
}
